package com.ruoyi.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ruoyi.order.domain.OrderFulfillInfo;
import com.ruoyi.order.mapper.OrderFulfillInfoMapper;
import com.ruoyi.order.service.IOrderFulfillInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 移动点餐信息Service业务层处理
 *
 * @author HHAOYU
 * @date 2021-01-16
 */
@Service
public class OrderFulfillInfoServiceImpl extends ServiceImpl<OrderFulfillInfoMapper, OrderFulfillInfo> implements IOrderFulfillInfoService {
    @Autowired
    private OrderFulfillInfoMapper orderFulfillInfoMapper;

    /**
     * 查询移动点餐信息
     *
     * @param id 移动点餐信息ID
     * @return 移动点餐信息
     */
    @Override
    public OrderFulfillInfo selectOrderFulfillInfoById(Long id)
    {
        return orderFulfillInfoMapper.selectOrderFulfillInfoById(id);
    }

    /**
     * 查询移动点餐信息列表
     *
     * @param orderFulfillInfo 移动点餐信息
     * @return 移动点餐信息
     */
    @Override
    public List<OrderFulfillInfo> selectOrderFulfillInfoList(OrderFulfillInfo orderFulfillInfo)
    {
        return orderFulfillInfoMapper.selectOrderFulfillInfoList(orderFulfillInfo);
    }

    /**
     * 新增移动点餐信息
     *
     * @param orderFulfillInfo 移动点餐信息
     * @return 结果
     */
    @Override
    public int insertOrderFulfillInfo(OrderFulfillInfo orderFulfillInfo)
    {
        return orderFulfillInfoMapper.insertOrderFulfillInfo(orderFulfillInfo);
    }

    /**
     * 修改移动点餐信息
     *
     * @param orderFulfillInfo 移动点餐信息
     * @return 结果
     */
    @Override
    public int updateOrderFulfillInfo(OrderFulfillInfo orderFulfillInfo)
    {
        return orderFulfillInfoMapper.updateOrderFulfillInfo(orderFulfillInfo);
    }

    /**
     * 批量删除移动点餐信息
     *
     * @param ids 需要删除的移动点餐信息ID
     * @return 结果
     */
    @Override
    public int deleteOrderFulfillInfoByIds(Long[] ids)
    {
        return orderFulfillInfoMapper.deleteOrderFulfillInfoByIds(ids);
    }

    /**
     * 删除移动点餐信息信息
     *
     * @param id 移动点餐信息ID
     * @return 结果
     */
    @Override
    public int deleteOrderFulfillInfoById(Long id)
    {
        return orderFulfillInfoMapper.deleteOrderFulfillInfoById(id);
    }
}
